<?php
/**
 * orderlistener.php
 * 订单状态变更处理程序监听
 * Author: netman
 * DateTime:  2023/7/17 17:24
 */

class Listener_Order_Created_OrderListener extends Listener_Base {


	public function handle($args)
	{
		$self = new self();
		$self->args = $args;
		if ($self->queue_status)
		{
			Queue::in('default',Listener_Order_Created_OrderListener::class, $args);
		}
		else
		{
			$self->perform();
		}
	}

	public function perform()
	{
		$ordersn = $this->args['ordersn'];
		Model_Member_Order::detect($ordersn);
	}

}